<?php
class Accountsstatus_Model_Updatestatusaction implements Accountsstatus_Model_Mainable{
    
    private $core_controller_notnull;
    private $core_controller_tokencheckout;
    
    private $accountsstatus_data_update;
    private $action_handler;
    
    private $actual_result;
    private $excepted_result = 1;
    
    public function __construct() {
        $this->core_controller_notnull = new Core_Controller_Notnull;
        $this->core_controller_tokencheckout = new Core_Controller_Tokencheckout;
    }


    public function main(array $variables = null) {
        $this->core_controller_notnull = new Core_Controller_Notnull;
        $this->core_controller_notnull->main($variables);
        $this->core_controller_tokencheckout = new Core_Controller_Tokencheckout;
        $this->core_controller_tokencheckout->main($variables['post']);
        $this->accountsstatus_data_update = new Accountsstatus_Data_Update;
        $this->actual_result = $this->accountsstatus_data_update->main($variables);
        if($this->actual_result = $this->excepted_result){
            $this->action_handler = new Accountsstatus_Data_Accountsstatusredirect;
            $this->action_handler->main($variables);
        }
        else {
            $this->action_handler = new Accountsstatus_Data_Errormessage;
            return $this->action_handler->main($variables);
        }
    }

}
